package Event.mainLine;

import Creature.Food;
import Creature.Player;
import Engine.System1;
import Event.MainStory;

import javax.swing.*;

public class mainLine10 extends MainStory {
    public mainLine10(Player player) {
        super(player);
        headerUrl = System1.class.getResource("/Interface/大白.png");
        header = new ImageIcon(headerUrl);
        this.lineIndex = 10;
        this.nextEventIndex = 11;
        eventName = "物资";
        happenText = "你因为之前是外卖员，被分配了运送物资上门的任务。有两个小区让你选你决定去…";
        options = new String[]{"干部小区", "普通小区"};
    }
    public void eventHappen(int option) {
        switch (option) {
            case 0:
                endText = "你的车上装满了上好的物资，去干部小区送货。";
                this.child = new mainLine11(player);
                break;
            case 1:
                endText = "你的车上装满了劣质的物资，去普通小区送货。";
                this.child = new mainLine12(player);
                break;

        }
    }
}
